import request from '@/utils/request'

// 查询边坡落石列表
export function listRockfall(query) {
  return request({
    url: '/human/rockfall/list',
    method: 'get',
    params: query
  })
}

// 查询边坡落石详细
export function getRockfall(id) {
  return request({
    url: '/human/rockfall/' + id,
    method: 'get'
  })
}

// 新增边坡落石
export function addRockfall(data) {
  return request({
    url: '/human/rockfall',
    method: 'post',
    data: data
  })
}

// 修改边坡落石
export function updateRockfall(data) {
  return request({
    url: '/human/rockfall',
    method: 'put',
    data: data
  })
}

// 删除边坡落石
export function delRockfall(id) {
  return request({
    url: '/human/rockfall/' + id,
    method: 'delete'
  })
}
